/**
 * 
 */
package net.sf.graph4j.element.tree;


import java.util.LinkedHashSet;
import java.util.Set;

import net.sf.graph4j.element.AbstractPropertied;

/**
 * @author chen cong
 *
 */
public class Forest<E> extends AbstractPropertied {

	Set<Tree<E>> trees = new LinkedHashSet<Tree<E>>();
	
	public boolean addTree (Tree<E> tree) {
		return trees.add(tree);
	}

	/**
	 * @return Returns the trees.
	 */
	public Set<Tree<E>> getTrees() {
		return trees;
	}
}
